﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InsuranceCompany.Core.Domain.Objects;

namespace InsuranceCompany.Core.Domain.Client
{
    public class JuridicalClient : Client
    {
        public string CompanyName { get; set; }
        public string CompanyIdentifier { get; set; }
        public Person Director { get; set; }
        public Person Accountant { get; set; }

        public JuridicalClient() :base()
        {
            CompanyName = "No name";
            CompanyIdentifier = "";
            Director = new Person();
            Accountant = new Person();
        }
        public JuridicalClient(JuridicalClient jc) :base(jc)
        {
            CompanyName = jc.CompanyName;
            CompanyIdentifier = jc.CompanyIdentifier;
            Director = new Person(jc.Director);
            Accountant = new Person(jc.Accountant);
        }
        public JuridicalClient(string companyName, string companyIdentifier, Person director, Person accountant) :base()
        {
            CompanyName = companyName;
            CompanyIdentifier = companyIdentifier;
            Director = new Person(director);
            Accountant = new Person(accountant);
        }
        public JuridicalClient(Client c, string companyName, string companyIdentifier, Person director, Person accountant)
            :base(c.Name, c.Surname, c.Gender, c.Patronymic, c.Phone, c.Email, c.Adress)
        {
            CompanyName = companyName;
            CompanyIdentifier = companyIdentifier;
            Director = new Person(director);
            Accountant = new Person(accountant);
        }
    }
}
